home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmTextReplaceWcs.z / XmTextReplaceWcs
Encoding:
Text File  |  2003-11-18  |  3.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeeeWWWWccccssss((((3333XXXX))))      UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV      XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeeeWWWWccccssss((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_T_e_x_t_R_e_p_l_a_c_e_W_c_s - A Text function that replaces part    of a
  10.       wide character string    in a Text widget
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/Text.h>
  14.  
  15.       void XmTextReplaceWcs    (wwwwiiiiddddggggeeeetttt,,,, ffffrrrroooommmm____ppppoooossss,,,, ttttoooo____ppppoooossss,,,, wwwwccccssssttttrrrriiiinnnngggg)
  16.            _W_i_d_g_e_t       wwwwiiiiddddggggeeeetttt;
  17.            _X_m_T_e_x_t_P_o_s_i_t_i_o_nffffrrrroooommmm____ppppoooossss;
  18.            _X_m_T_e_x_t_P_o_s_i_t_i_o_nttttoooo____ppppoooossss;
  19.            _w_c_h_a_r__t       *wwwwccccssssttttrrrriiiinnnngggg;
  20.  
  21.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.       _X_m_T_e_x_t_R_e_p_l_a_c_e_W_c_s replaces part of the    wide character string
  23.       in the Text widget.  The character positions begin at    zero
  24.       and are numbered sequentially    from the beginning of the
  25.       text.
  26.  
  27.       An example text replacement would be to replace the second
  28.       and third characters in the text string.  To accomplish
  29.       this,    the ffffrrrroooommmm____ppppoooossss parameter must be 1 and the ttttoooo____ppppoooossss
  30.       parameter must be 3.    To insert a string after the fourth
  31.       character, both the ffffrrrroooommmm____ppppoooossss and ttttoooo____ppppoooossss parameters must be
  32.       4.
  33.  
  34.       This routine calls the widget's _X_m_N_v_a_l_u_e_C_h_a_n_g_e_d_C_a_l_l_b_a_c_k and
  35.       verification callbacks, either _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k or
  36.       _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k_W_c_s, or both.    If both    verification
  37.       callback lists are registered, the procedures    of the
  38.       _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k list are executed first and the
  39.       resulting data is passed to the _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k_W_c_s
  40.       callbacks.
  41.  
  42.       wwwwiiiiddddggggeeeetttt
  43.            Specifies the Text widget ID
  44.  
  45.       ffffrrrroooommmm____ppppoooossss
  46.            Specifies the start position of the text    to be replaced
  47.  
  48.       ttttoooo____ppppoooossss
  49.            Specifies the end position of the text to be replaced
  50.  
  51.       wwwwccccssssttttrrrriiiinnnngggg
  52.            Specifies the wide character string value to be added
  53.            to the Text widget
  54.  
  55.       For a    complete definition of Text and    its associated
  56.       resources, see _X_m_T_e_x_t(_3_X).
  57.  
  58.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  59.       _X_m_T_e_x_t(_3_X) and _X_m_T_e_x_t_R_e_p_l_a_c_e(_3_X).
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.